package com.xiaoyun.service.strategy.impl;

import com.xiaoyun.enums.OperatorFriendRequestTypeEnum;
import com.xiaoyun.service.UserService;
import com.xiaoyun.service.strategy.IOperatorFriendStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class OneOperatorFriendStrategy implements IOperatorFriendStrategy {
    @Autowired
    private UserService userService;

    @Override
    public OperatorFriendRequestTypeEnum type() {
        return OperatorFriendRequestTypeEnum.IGNORE;
    }

    @Override
    public void execution(String sendUserId, String acceptUserId) {
        log.info("OneOperatorFriend");
        userService.deleteFriendRequest(sendUserId, acceptUserId);
    }


}
